<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\Auth;
use App\User;
class GoodsShopcar extends Model
{
    use SoftDeletes;
    
    
    public function goods()
    {
        return $this->hasOne(Good::class, 'id', 'goods_id');
    }
    
    public function goods_attr()
    {
        return $this->hasOne(GoodsAttribute::class, 'id', 'goods_attr_id');
    }
}
